//
//  AddBandCardSuccessViewController.m
//  NewPro
//
//  Created by RYX on 2018/10/14.
//  Copyright © 2018年 何荧红. All rights reserved.
//

#import "AddBandCardSuccessViewController.h"
#import "BandViewController.h"

@interface AddBandCardSuccessViewController ()

@end

@implementation AddBandCardSuccessViewController

- (void)viewWillAppear:(BOOL)animated{

    [super viewWillAppear:animated];

    [self.navigationController setNavigationBarHidden:YES];
    
    //禁用滑动手势
    self.fd_interactivePopDisabled = YES;
    
}

- (void)viewWillDisappear:(BOOL)animated{
    
    [super viewWillDisappear:animated];
    [self.navigationController setNavigationBarHidden:NO];
}


- (IBAction)onOKBtn:(UIButton *)sender {
    
    [self.navigationController setNavigationBarHidden:NO];
    
    UINavigationController *nav = self.navigationController;
    
    NSMutableArray *viewControllers = [[NSMutableArray alloc]init];
    
    for (UIViewController *vc in [nav viewControllers]) {
        
        [viewControllers addObject:vc];
        
        if ([vc isKindOfClass:[BandViewController class]]) {
            
            break;
            
        }
        
    }
    
    [nav setViewControllers:viewControllers animated:YES];
    
}


@end
